]
\definefloat[subfigure][local=yes]
\setupcaption[subfigure][numberconversion=a, prefix=no, headseparator={)}]
\setuplabeltext[subfigure=]
\appendvalue{stopplacefigure}{\resetcounter[subfigure]}
\starttext
test sdlkf jlsdjf lksjdf
\startplacefigure[title=Test]
\startfloatcombination[nx=3
}{\resetcounter[subfigure]}
\starttext
\startplacefigure[title=Test]
\startfloatcombination[nx=1, ny=2]
\startplacesubfigure[title=Test]
\externalfigure[dummy][width=4cm,height=1cm]
\stopplacesubfigure
\startfloatcombination[nx=2, ny=1]
\startplacesubfigure
]
\startfloatcombination[nx=1, ny=2]
\startplacesubfigure[title=Test]
\externalfigure[dummy][width=4cm,height=1cm]
\stopplacesubfigure
\startfloatcombination[nx=2, ny=1]
\startplacesubfigure[title=Test]
\externalfigure[dummy][width=4cm,height=1cm
Hi!
The caption "FOO" runs into the right figure's caption:
\setuplayout [width=18.4cm]
\setuptolerance [verytolerant, stretch] %% even with stretch
\starttext
\startplacefigure
\startfloatcombination
\startplacefigure [title=Unexpectedly unnecessary FOO-BA
On 11/24/2021 10:19 AM, Marco Patzer via ntg-context wrote:
Hi!
I'd like to use subfigure numbering for floats. This works:
\useMPlibrary [dum]
\starttext
\startplacefigure [location=none]
\startfloatcombination [nx=2]
\startplacefigure [title=Left, reference=ref:left, group=one
Hi!
I'd like to use subfigure numbering for floats. This works:
\useMPlibrary [dum]
\starttext
\startplacefigure [location=none]
\startfloatcombination [nx=2]
\startplacefigure [title=Left, reference=ref:left, group=one, groupsuffix=a]
\externalfigure
\stopplacefigure
> \setupcaptions[
>> > >number=no, %<- comment and table appears
>> > >align=flushright]
>> > > \starttext
>> > > \startplacecombination[title=Combination]
>> > >\startfloatcombination
>> >
appears
> >align=flushright]
> > \starttext
> > \startplacecombination[title=Combination]
> >\startfloatcombination
> > \startplacetable%[title=Table] %<- uncomment and table appears
> >\bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE
> &
On 12/25/2020 9:47 PM, Christoph Reller wrote:
Hi,
Consider the following MWE:
\definefloat[combination][figure]
\setupcaptions[
number=no, %<- comment and table appears
align=flushright]
\starttext
\startplacecombination[title=Combination]
\startfloatcombination
\startplaceta
Hi,
Consider the following MWE:
\definefloat[combination][figure]
\setupcaptions[
number=no, %<- comment and table appears
align=flushright]
\starttext
\startplacecombination[title=Combination]
\startfloatcombination
\startplacetable%[title=Table] %<- uncomment and table a
]
[numberconversion=characters,
numberstopper=)]
\setuplabeltext
[subfigure=]
\definecounter
[subfigure]
[way=bytext]
\starttext
\startplacefigure [title=First, reference=first]
\startfloatcombination [nx=2, ny=1]
\startplacesubfigure
\externalfigure
\stopplacesubfigure
n current LMTX and MkIV.
Hraban
\usemodule[visual]
\definecolor[fakerulecolor][c=.2,m=.1,k=.2]
\useMPlibrary[dum]
\automigrateinserts % nop in LMTX
\showframe
\setupcaptions[
headstyle={\ss\bfx},
align={flushleft,high},
hang=yes,
]
\starttext
\fakewords{10}{30}
% Footnotes, but no co
arding the width it’s still the same MWE (slightly adapted), apparently not
related to floatcombinations but a general problem of footnotes in captions;
couldn’t reproduce “some missing” in an MWE yet.
Hraban
\useMPlibrary[dum]
\automigrateinserts % nop in LMTX
\showframe
\starttext
\input knuth
% Foo
>> \starttext
>> \input lorem
>> \startplacefigure[location=none]
>> \startfloatcombination[2*1]
>> \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}]
>> \externalfigure[003][width=.48\textwidth]
>> \stopplacefigure
>> \startplacefigure[title={Rig
nothing in lmtx
\showframe
\starttext
\input lorem
\startplacefigure[location=none]
\startfloatcombination[2*1]
\startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}]
\externalfigure[003][width=.48\textwidth]
\stopplacefigure
\startplacefigure[title={Right Image\footnote[f:4
.
\useMPlibrary[dum]
\automigrateinserts
\showframe
\starttext
\input lorem
\startplacefigure[location=none]
\startfloatcombination[2*1]
\startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}]
\externalfigure[003][width=.48\textwidth]
\stopplacefigure
\startplacefigure[title={Right Image
or with floatcombinations without footnotes.
Please let there be an easy fix...
Hraban
\useMPlibrary[dum]
\automigrateinserts
\showframe
\starttext
\input knuth
%\startplacefigure[location=none]
%\startfloatcombination[2*1]
\startplacefigure[title={Image with footnote\footnote[f:1]{foo bar baz
figures with captions included
>> in the usual numbering of figures and not one number & caption for the
>> combination.
>> How can I achieve this?
>
> Use a float combination:
>
> \startplacefigure[location=none]
>\startfloatcombination[2*1]
>\s
tion for the combination.
How can I achieve this?
Use a float combination:
\useMPlibrary[dum]
\starttext
\input ward
\startplacefigure[title={Dummy}]
\externalfigure[dummy]
\stopplacefigure
\input jojomayer
\startplacefigure[location=none]
\startfloatcombination[2*1]
\startplacefigure[title={
but it makes
nothing. What am I doing wrong?
Best wishes,
Tomáš
%%%
\setuplayout[grid=yes]
\starttext
\def\myfig#1#2#3#4{
\startplacefigure[location={right,none}]
\setupfloat[roffset=0cc] % leftmargindistance=2cm
\startfloatcombination[1*1]
\setupfloatcaption[align=middle
y the last
footnote is placed in the output. MWE:
\starttext
\startplacefigure[title={OuterCap\footnote{Outer footnote}}]
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\text
k]
>>> \page[empty,right]
>>> \popbackground}
>>> \stopsetups
>>>
>>> \setuphead
>>> [chapter]
>>> [page=yes,
>>>before=\directsetup{chapter:before}]
>>>
>>> \starttext
>>>
>>&
Lars schrieb am 09.01.19 um 23:01:
Hi there, hi Hans,
I just want to let you know that footnotes insterted in
float-combinations don't get rendered properly, i. e. only the last
footnote is placed in the output. MWE:
\starttext
\startplacefigure[title={OuterCap\footnote{Outer footnote}}]
--
>
> Message: 2
> Date: Sun, 13 Jan 2019 21:06:42 +0100
> From: Wolfgang Schuster
> To: mailing list for ConTeXt users , Lars
>
> Subject: Re: [NTG-context] Footnotes in float combinations missing in
> output
> Message-ID:
> Content-Type: text/pla
}}]
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote3\footnote{world}}{\externalfigure[cow][width={.2\textwidth
rendered properly, i. e. only the last footnote is placed in the
output. MWE:
\starttext
\startplacefigure[title={OuterCap\footnote{Outer footnote}}]
\startfloatcombination[nx=3]
\placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
\placefigure{Fnote2\footnote
Hi there, hi Hans,
I just want to let you know that footnotes insterted in
float-combinations don't get rendered properly, i. e. only the last
footnote is placed in the output. MWE:
\starttext
\startplacefigure[title={OuterCap\footnote{Outer footnote}}]
\startfloatcombination[nx=3
},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure
1top. \input knuth
\startplacefigure[location={top,none
#
#\startplacefigure[location=none]
# \startfloatcombination[2*1]
# \placefigure{A dutch cow}{\externalfigure[cow][height=5cm]}
# \placefigure{A dutch mill}{\externalfigure[mill][height=5cm]}
# \stopfloatcombination
#\stopplacefigure
#
#\stoptext
#
#Wolfgang
Hi Thomas,
you have to put your images in a floatcombination environment.
\setupexternalfigure[location=default]
\starttext
\startplacefigure[location=none]
\startfloatcombination[2*1]
\placefigure{A dutch cow}{\externalfigure[cow][height=5cm]}
\placefigure{A dutch mill
mber=no]
>>> > \starttext
>>> > \placetable[][]{One}{
>>> >\bTABLE \bTR \bTD First \eTD \eTR \eTABLE}
>>> > \placefloat[][]{}{
>>> >\startfloatcombination
>>> > \placetable[][]{Two}{
>>> >\bTABL
ons is not honored
>> > correctly in floatcombinations anymore. Consider the following MWE:
>> >
>> > \setupcaptions[location=top, number=no]
>> > \starttext
>> > \placetable[][]{One}{
>> >\bTABLE \bTR \bTD First \eTD \eTR \eTABL
owing MWE:
> >
> > \setupcaptions[location=top, number=no]
> > \starttext
> > \placetable[][]{One}{
> >\bTABLE \bTR \bTD First \eTD \eTR \eTABLE}
> > \placefloat[][]{}{
> >\startfloatcombination
> > \placetable[][]{Two}{
> >
[][]{}{
\startfloatcombination
\placetable[][]{Two}{
\bTABLE \bTR \bTD Second \eTD \eTR \eTABLE}
\stopfloatcombination}
\stoptext
In earlier versions of ConTeXt, both captions "One" and "Two" of both
tables are rendered above the respective table. In the currently latest
versi
={nonumber}]
\startfloatcombination[nx=2,ny=1]
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\startplacefigure
\useMPgraphic{figa}
\stopplacefigure
\stopfloatcombination
\stopplacefigure
\startuseMPgraphic{figb}
draw (1cm,1cm) -- origin -- (1cm,-1cm);
setbounds currentpicture to
((0,-1cm)--(1cm
Hi,
I have come up with a simpler MWE which shows the problem more explicitly:
\setupcaptions[number=no]
\starttext
\startplacefigure[location=right]
\startfloatcombination
\placefigure{A Cow}{\externalfigure[cow.pdf]}
\placefigure{Another Cow}{\externalfigure[cow.pdf
Dear List,
Consider the following MWE:
\startplacefigure
\startfloatcombination
\startplacetable[title={Table I}] % <- shifted
%\startplacetable % <- not shifted
\bTABLE
\bTR \bTD Foo \eTD \bTD Text. \eTD \eTR
\eTABLE
\stopplac
On Thu, 08 Dec 2016 20:27:12 +0900, Jeong Dal <hak...@me.com> wrote:
> I don’t know how to put figures horizontally using “\startfloatcombination”.
> Is there any reason to use “\startfloatcombination”?
Dear Dalyoung,
Thank you for your feedback. Indeed, \startcombinantion produ
Dear Christoph,
I don’t know how to put figures horizontally using “\startfloatcombination”.
Is there any reason to use “\startfloatcombination”?
I usually use the following code when I need to display the figures.
It is displayed horizontally and center aligned nicely.
\useMPlibrary[dum
Hi,
In recent versions of ConTeXt, floatcombinations are not placed centered by
default anymore. Consider the following MWE in which two cows are placed
side by side:
\placefigure{}{
\startfloatcombination
\placefigure{}{\externalfigure[cow.pdf]}
\placefigure{}{\externalfigure[cow.pdf
already), not centered.
What is the best way to achieve that?
Use the floatcombination environment.
\useMPlibrary[dum]
\starttext
\startplacefigure[location=nonumber]
\startfloatcombination%[width=\textwidth,distance=0pt]
\startplacefigure[title={Some description
of B
with those long descriptions being justified (they split in multiple
line already), not centered.
What is the best way to achieve that?
Use the floatcombination environment.
\useMPlibrary[dum]
\starttext
\startplacefigure[location=nonumber]
\startfloatcombination%[width
with those long descriptions being justified (they split in multiple
line already), not centered.
What is the best way to achieve that?
Use the floatcombination environment.
\useMPlibrary[dum]
\starttext
\startplacefigure[location=nonumber]
\startfloatcombination%[width
]
\starttext
\startplacefigure[location=nonumber]
\startfloatcombination%[width=\textwidth,distance=0pt]
\startplacefigure[title={Some description of A}]
%\externalfigure[A][width=4cm]
\framed[frame=off,offset=none,width=.5
Am 04.07.2014 um 18:05 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com:
My figures are of the same height, so location=top is OK. (Can one
combine location=top with [3*1]“?)
You can set the number of rows and columns with the nx and ny keys, e.g.
\startfloatcombination[location=top,nx
the block.
\setupexternalfigures[location=default]
\starttext
\input knuth
\startplacefigure[location=nonumber]
\startfloatcombination[1*2]
\startplacefigure[title={Dutch cow}]
\externalfigure[cow][width=4cm]
\stopplacefigure
]
\startfloatcombination[1*2]
\startplacefigure[title={Dutch cow}]
\externalfigure[cow][width=4cm]
\stopplacefigure
\startplacefigure[title={English cow}]
\externalfigure[cow][width=4cm]
\stopplacefigure
}}
\stoptext
As I have explained, this works, but it would prefer to use a
floatcombination syntax to describe this type of layout just like I
would use it for two images placed side-by-side. I. e. it would be nice
if ConTeXt supported something like the following:
\startfloatcombination[2*1
[combinationfloat]
[number=no]
\setupcaptions
%% [location=bottom]
[location=top]
\starttext
\startplacefigure [title=Foobar]
\startfloatcombination [2*2]
\startplacecombinationfloat [title=alpha] \externalfigure
\stopplacecombinationfloat
\startplacecombinationfloat [title
]
\definefloat
[combinationfloat]
[combinationfloats]
[figure]
\setupcaption
[combinationfloat]
[number=no]
\setupcaptions
%% [location=bottom]
[location=top]
\starttext
\startplacefigure [title=Foobar]
\startfloatcombination [2*2]
\startplacecombinationfloat [title
caption setups.
\useMPlibrary [dum]
\definefloat
[combinationfloat]
[combinationfloats]
[figure]
\setupcaption
[combinationfloat]
[number=no]
\setupcaptions
%% [location=bottom]
[location=top]
\starttext
\startplacefigure [title=Foobar]
\startfloatcombination [2*2
always needed such things in projects):
\starttext
\startplacefigure[location={here,none}]
\startfloatcombination[2*2]
\placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]}
\placefigure{beta} {\externalfigure[cow.pdf][width=2cm]}
\placefigure{gamma}{\externalfigure
...
sure, but then it's nice to have it as option of the combination
command
anyway, there's also (we've always needed such things in projects):
\starttext
\startplacefigure[location={here,none}]
\startfloatcombination[2*2]
\placefigure{alpha}{\externalfigure[cow.pdf][width=1cm
Hi,
I understand that \startfloatcombination was an experimental feature in
the previous builds anyway, but it is broken in the latest nightly.
Thank you for the rapid fixes so far!
Best regards,
Prash
___
If your
On 7-7-2012 15:18, Prashanth wrote:
Hi,
I understand that \startfloatcombination was an experimental feature in
the previous builds anyway, but it is broken in the latest nightly.
Thank you for the rapid fixes so far!
I just did an upload ... if it still fails I need an example.
Hans
. (It has been commented out below in case you want to test
that too.
Best regards,
Prash
%\setupformulas[align=right]
\starttext
\placeformula[eq:ate-intr]
\startformula
\text{Jane slept.}
\stopformula
\startfloatcombination [2*1]
\placetable[force][tab:eq1]{Sentence 1}{
\bTABLE
]%
{\doglobal\increment\noflocalfloats
\savebox{localfloats}{\noflocalfloats}{\box\floatbox}}
\setuppapersize[A5][A4,landscape]
\starttext \showframe
\startfloatcombination [2*2]
\placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]}
\placefigure{beta} {\externalfigure[cow.pdf][width=2cm
tex error on line 3 in file floatcombi.tex: Use of ...
1 \starttext
2 \startfloatcombination [2*2]
3 \placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]}
Example:
\starttext
\startfloatcombination [2*2]
\placefigure{alpha}{\externalfigure[cow.pdf][width=1cm
\placefigure [none]{}
{\startfloatcombination [2*1]
\placefigure {.}%
{\externalfigure [.]}
\placefigure {.}%
{\externalfigure [.]}
\stopfloatcombination}
\stoptext
(some definitions are missing: forcelocalfloats, resetlocalfloats,
noflocalfloats)
Best wishes
Thomas
?
Most settings between
\start
\stop
are local, so you can simply do
\placefigure[none]{}{
\startfloatcombination[2*1]
\setupcaptions[width=fit]
\placefigure[here]{}{\externalfigure[01]}
\placefigure[here]{}{\externalfigure[02]}
\stopfloatcombination
}
--
-- Rogutės
Hello,
I can't get floatcombinations to work in mkiv:
\starttext
\placefigure [none]{}
{\startfloatcombination [2*1]
\placefigure {.}%
{\externalfigure [.]}
\placefigure {.}%
{\externalfigure [.]}
\stopfloatcombination}
\stoptext
(some definitions are missing: forcelocalfloats
with graphics is a bit tricky
it would be nice to have something like:
\startfloatcombination[3*2, width=.8\textwidth]
\externalfigure….
\externalfigure….
\externalfigure….
\externalfigure….
\externalfigure….
\externalfigure….
\stopfloatcombination
and all graphics fit in the given width with same
,
Vyatcheslav
Hi,
yes i´m aware of \startcombination and also \startfloatcombination but i think
this has not that automatic feature which i described (the height of the
pictures will be adjusted automatically so all pictures in one row have the
same height - the outcome of the height is so not really
´m missing
something?
Regards,
Vyatcheslav
Hi,
yes i´m aware of \startcombination and also \startfloatcombination but i think
this has not that automatic feature which i described (the height of the
pictures will be adjusted automatically so all pictures in one row have the
same height
switch back to LaTeX.
it's no big deal to make some scaler but the problem is what to take as
reference, specify it etc etc. If it's not the first image, then we need
multiple passes. too much automatism with graphics is a bit tricky
it would be nice to have something like:
\startfloatcombination
knuth
\placefigure
{none}
{\setupcombinations[distance=2em]
\startfloatcombination[2*1]
\placefigure{A dutch cow}{\externalfigure[cow]}
\placetable {Cow data}{\starttable[|l|l|]\NC Age \NC Weight \NC
\AR 1 \NC 100 \NC\AR\stoptable}
\stopfloatcombination}
\stoptext
Wolfgang
and figure were displayed sequentially. Is there a way to do
this while keeping both references intact? Thanks.
\starttext
\input knuth
\placefigure
{none}
{\setupcombinations[distance=2em]
\startfloatcombination[2*1]
\placefigure{A dutch cow}{\externalfigure[cow]}
\placetable
Hi,
Since i needed it right now in a project ...
\starttext
\input tufte
\placefigure
[left,none]
{}
{\startfloatcombination[2*2]
\placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]}
\placefigure{beta} {\externalfigure[cow.pdf][width=2cm]}
\placefigure{gamma
68 matches
Mail list logo